Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Ambient Coefficients

Labels

ASCII
AmbientCoefficient
Binary
camb ( = 0x63616D62 )

Data Format

Float32         ambientCoefficient
ambientCoefficient
The value of this field must lie in the closed interval [0, 1]. 0 is the minimum value, 1 is the maximum value.

Data Size

4

Description

The ambient coefficient is a measure of the level of an object's reflection of ambient light. Ambient coefficients may be assigned separately and selectively to the facets and vertices of faceted and verticed objects, and the same ambient coefficient may be assigned to several objects by placing the coefficient in a suitably located attribute set.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute sets. An ambient coefficient always has a parent object.

Child Objects

None.

Example

Container (
    AttributeSet ( )
    AmbientCoefficient ( 0.5 )
    DiffuseColor ( 1 1 1 )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |